<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$seo['title']}</title>
<meta name="keywords" content="{$seo['keywords']}" />
<meta name="description" content="{$seo['description']}" />
<link type="text/css" rel="stylesheet" href="{$pe['host_tpl']}css/style.css" />
<script type="text/javascript" src="{$pe['host_root']}include/js/jquery.js"></script>
<script type="text/javascript" src="{$pe['host_root']}include/js/global.js"></script>
</head>
<body style="background:#fff;padding:5px">
<div class="tixing">【商品优惠】减价50元：请输入 -50；&nbsp;&nbsp;涨价50元，请输入+50。</div>
<form method="post" id="form" autocomplete="off">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list mat10">
<tr>
	<td class="bgtt" width="50" style="border-top:0"></td>
	<td class="bgtt" width="" style="border-top:0">商品详情</td>
	<td class="bgtt" width="81" style="border-top:0">单价(元)</td>
	<td class="bgtt" width="81" style="border-top:0">数量</td>
	<td class="bgtt" width="81" style="border-top:0">小计</td>
	<td class="bgtt" width="81" style="border-top:0">商品优惠</td>
	<td class="bgtt" width="91" style="border-top:0">运费</td>
	<!--<td class="bgtt" width="100" style="border-top:0">实付款(元)</td>-->	
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" class="list">
<!--{foreach($product_list as $k=>$v):}-->
<tr>
	<td width="50"><img src="{pe_thumb($v['product_logo'], 100, 100)}" width="40" height="40" class="imgbg"></td>
	<td style="text-align:left;">
		<a href="{pe_url('product-'.$v['product_id'])}" title="{$v['product_name']}" target="_blank" class="cblue">{$v['product_name']}</a>
		<!--{if($v['prorule_name']):}-->
		<p class="c888 mat5"><!--{foreach(unserialize($v['prorule_name']) as $vv):}-->[{$vv['name']}：{$vv['value']}]&nbsp;&nbsp;<!--{endforeach;}--></p>
		<!--{endif;}-->
	</td>
	<td width="80" style="border-left:1px solid #eee;"><span class="num">{round($v['product_money'], 1)}</span></td>
	<td width="80" style="border-left:1px solid #eee;"><span class="num">{$v['product_num']}</span></td>
	<td width="80" style="border-left:1px solid #eee;"><span class="num">{round($v['product_money']*$v['product_num'], 1)}</span><input type="hidden" name="product_money[{$v['product_id']}]" value="{$v['product_money']*$v['product_num']}" class="js_product_money" /></td>
	<td width="80" style="border-left:1px solid #eee;"><input type="text" name="product_money_yh[{$v['product_id']}]" value="{order_money_yh($v['product_money_yh'])}" class="js_product_money_yh inputtext input40 c666" /></td>
	<!--{if($k==0):}-->
	<td width="90" rowspan="{count($product_list)}" style="border-left:1px solid #eee;"><input type="text" name="order_wl_money" value="{round($info['order_wl_money'], 1)}" class="inputtext input40 c666" id="wl_money" /></td>
	<!--<td width="106" rowspan="{count($product_list)}" style="border-left:1px solid #eee;">
		<span class="strong num font14 corg" id="order_money">{round($info['order_money'], 1)}</span>
	</td>-->
	<!--{endif;}-->
</tr>
<!--{endforeach;}-->
</table>
<div class="dingdan_heji">
	<!--<span class="fl">交易获得：<span class="cgreen num">{$info['order_point_get']}</span> 积分</span>
	<div class="fr">
		<span class="mar20">商品总金额：<span class="cred num" id="order_product_money">{round($info['order_product_money'], 1)}</span></span>
		<span class="mar20">运费：<span class="cred num" id="order_wl_money">{round($info['order_wl_money'], 1)}</span></span>
		<span class="mar20">使用优惠券：<a class="cred num" href="javascript:;" title="{$info['order_quan_name']}">-{round($info['order_quan_money'], 1)}</a></span>
		<span class="mar10">使用积分：<a class="cred num" href="javascript:;" title="使用{$info['order_point_use']}积分">-{round($info['order_point_money'], 1)}</a></span>
	</div>
	<div class="clear"></div>-->
	<div class="dingdan_jiesuan" style="font-family:微软雅黑; font-size:12px; margin-top:0;">
		<!--{if($info['order_point_get']):}-->
		<div class="dingdan_jiesuan_l">可获得积分：<span class="cgreen num">{$info['order_point_get']}</span> 点</div>
		<!--{endif;}-->
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td>商品金额：</td>
			<td width="100" id="order_product_money">¥ {$info['order_product_money']}</td>
		</tr>
		<tr>
			<td>运费：</td>
			<td id="order_wl_money">¥ {$info['order_wl_money']}</td>
		</tr>
		<!--{if($info['order_quan_money']):}-->
		<tr>
			<td>使用优惠券：</td>
			<td><a href="javascript:;" title="{$info['order_quan_name']}">- ¥ {$info['order_quan_money']}</a></td>
		</tr>
		<!--{endif;}-->
		<!--{if($info['order_point_use']):}-->
		<tr>
			<td>使用积分：</td>
			<td><a href="javascript:;" title="使用{$info['order_point_use']}积分">- ¥ {$info['order_point_money']}</a></td>
		</tr>
		<!--{endif;}-->
		<tr>
			<td>应付金额：</td>
			<td class=" cred strong" id="order_money">¥ {$info['order_money']}</td>
		</tr>
		</table>
		<div class="clear"></div>
	</div>
</div>
<div class="acenter mat20">
	<input type="hidden" name="pesubmit" />
	<input type="hidden" name="pe_token" value="{$pe_token}" />
	<input type="submit" value="提 交" class="tjbtn" />
</div>
</form>
<script type="text/javascript">
$(function(){
	$(".js_product_money_yh").add("#wl_money").keyup(function(){
		var product_money = 0, wl_money = 0, money= 0;
		$(".js_product_money").each(function(i){
			money = parseFloat($(".js_product_money_yh").eq(i).val());
			if (isNaN(money)) {
				money = 0;
			}
			product_money += parseFloat($(this).val()) + money;
		})
		product_money = pe_num(product_money, 'round', 1);		
		wl_money = pe_num($("#wl_money").val(), 'round', 1);
		var order_money = product_money + wl_money - parseFloat({$info['order_quan_money']}) - parseFloat({$info['order_point_money']});
		order_money = pe_num(order_money, 'round', 1);
		if (order_money < 0) order_money = '0.0';
		product_money = pe_num(product_money, 'round', 1, true);
		wl_money = pe_num(wl_money, 'round', 1, true);
		order_money = pe_num(order_money, 'round', 1, true);
		$("#order_product_money").html("¥ " + product_money);
		$("#order_wl_money").html("¥ " + wl_money);
		$("#order_money").html("¥ " + order_money);
	})
})
</script>
</body>
</html>